import request from '@/utils/request'

// 查询每日车站列表
export function listDailyTrainStation(query) {
  return request({
    url: '/business/daily-train-station/list',
    method: 'get',
    params: query
  })
}

// 查询每日车站详细
export function getDailyTrainStation(id) {
  return request({
    url: '/business/daily-train-station/' + id,
    method: 'get'
  })
}

// 新增每日车站
export function addDailyTrainStation(data) {
  return request({
    url: '/business/daily-train-station',
    method: 'post',
    data: data
  })
}

// 修改每日车站
export function updateDailyTrainStation(data) {
  return request({
    url: '/business/daily-train-station',
    method: 'put',
    data: data
  })
}

// 删除每日车站
export function delDailyTrainStation(id) {
  return request({
    url: '/business/daily-train-station/' + id,
    method: 'delete'
  })
}

// 查询每日车站分组列表
export function listDailyTrainStationByGroup(query) {
  return request({
    url: '/business/daily-train-station/listByGroup',
    method: 'get',
    params: query
  })
}